﻿using System.Collections.Generic;
using System.Linq;
using QFramework;
using UnityEngine;

namespace Gp.Scripts.Core {
    public class SystemDatabaseLoader : MonoSingleton<SystemDatabaseLoader> {
        [SerializeField] private List<ScriptableObject> configData;
        public T GetConfig<T>() where T : ScriptableObject {
            return configData.FirstOrDefault(x => x is T) as T;
        }
    }
}